<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<%@ include file="/commons/nocache.jspf" %>
<%@ taglib uri="/FCKeditor" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<title>链接管理</title>
<link href="${ctx }/css/admin/css.css" rel="stylesheet" type="text/css" />
<script src="${ctx}/scripts/datepicker/WdatePicker.js"></script>

<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
	color: #000000;
}
body {
	background-color: #F3F8FC;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a {
	font-family: 宋体;
	font-size: 12px;
	color: #000000;
}
a:visited {
	color: #000000;
}
a:hover {
	color: #FF3300;
}
a:active {
	color: #000000;
}
-->
#newPreview1
{
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);
}

#newPreview8
{
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);
}
-->
</style>
<script type="text/javascript" src="${ctx }/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="${ctx}/scripts/commons/annext.js"></script>

<script type="text/javascript" src="${ctx}/scripts/commons/jquery.MultiFile.js"></script>
<script type="text/javascript">
		function deleteWeb(webId) {
		  if(window.confirm('确定要删除该信息吗?')) {
		  		window.location = "${ctx }/sysweb/sysweb!delete.action?sysWeb.webId="+webId;
		  }  
		}

		function PreviewImg1(imgFile){
		    //新的预览代码，支持 IE6、IE7。
		    var newPreview = document.getElementById("newPreview1");
		    newPreview.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile.value;
		    if(imgFile.value)
	  			newPreview.style.height = "71px";
			if(newPreview.innerHTML.length > 0 ){
				newPreview.innerHTML = "";
			}				
		}
		
		function PreviewImg8(imgFile){
		    //新的预览代码，支持 IE6、IE7。
		    var newPreview = document.getElementById("newPreview8");
		    newPreview.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgFile.value;
		    if(imgFile.value)
	  			newPreview.style.height = "71px";
			if(newPreview.innerHTML.length > 0 ){
				newPreview.innerHTML = "";
			}				
		}
		function showSub(){
					var obj=document.getElementById("shows");
					obj.style.display='block';
				}
				function hideSub(){
					var obj=document.getElementById("shows");
					obj.style.display='none';
				}
		function addWeb(){
				var name = document.getElementById("sysWeb.webName").value;
			
			if(name==null||Trim(name)=="" ){
			   document.getElementById("errName").innerHTML = "<font color='red'>网站名称不能为空</font>";
			   return false;
			}
			if(name.length>100 ){
			   document.getElementById("errName").innerHTML = "<font color='red'>网站名称不能超过100字符</font>";
			   return false;
			}
			 document.forms[0].submit();
				 
			}
		    //去空格函数 
		function LTrim(str) 
		{ 
		var i; 
		for(i=0;i<str.length;i++) 
		{ 
			if(str.charAt(i)!=" "&&str.charAt(i)!=" ")break; 
		} 
			str=str.substring(i,str.length); 
			return str; 
		} 
		
		function RTrim(str) 
		{ 
		var i; 
			for(i=str.length-1;i>=0;i--) 
			{ 
			 if(str.charAt(i)!=" "&&str.charAt(i)!=" ")break; 
			} 
		str=str.substring(0,i+1); 
		return str; 
		} 
		
		
		function Trim(str) 
		{ 
			return LTrim(RTrim(str)); 
		} 		
			
</script>

</head>
<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css"/>
<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css"/>
<body>
<div id="main">
	<div class="zdsz" id="select1">

<div class="tab"><a href="${ctx}/sysweb/sysweb!index.action"><h3>修改基本信息</h3></a>
				<h3 class="sel">修改弹出窗口</h3>
				</div>
		<div class="zd_gut">
		<ul class="block">
		<li>

<form name="form1" action="${ctx}/sysweb/sysweb!saveModify.action" method="post"  enctype="multipart/form-data">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="${ctx }/images/maintopbg.gif">
  <tr>
    <td align="left"><img src="${ctx }/images/maintop.gif" width="7" height="12" /></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
	<input  type="hidden" name="sysWeb.webId" value="${sysWeb.webId }"/>
	 <input type="hidden" id="webName" name="sysWeb.webName" value="${sysWeb.webName}" />
	  <input type="hidden" id="webHttp" name="sysWeb.webHttp" value="${sysWeb.webHttp}" />
	  <input type="hidden" id="webVersion" name="sysWeb.webVersion" value="${sysWeb.webVersion}" />
	  <input type="hidden" id="webTel" name="sysWeb.webTel" value="${sysWeb.webTel}" />
	  <input type="hidden" id="webFax" name="sysWeb.webFax" value="${sysWeb.webFax}" />
	  <input type="hidden" id="webEmail" name="sysWeb.webEmail" value="${sysWeb.webEmail}" />
	  <input type="hidden" id="webAddress" name="sysWeb.webAddress" value="${sysWeb.webAddress}" />
	  <input type="hidden" id="webPost" name="sysWeb.webPost" value="${sysWeb.webPost}" />
	  <input type="hidden" id="webIcp" name="sysWeb.webIcp" value="${sysWeb.webIcp}" />
	  <input type="hidden" id="webKey" name="sysWeb.webKey" value="${sysWeb.webKey}" />
	  <input type="hidden" id="webContent" name="sysWeb.webContent" value="${sysWeb.webContent}" />
	  <input type="hidden" id="webLogo" name="sysWeb.webLogo" value="${sysWeb.webLogo}" />
	  <input type="hidden" id="webPopPic" name="sysWeb.webPopPic" value="${sysWeb.webPopPic}" />
	  
	
  
  <tr>
    <td height="25" width="15%" align="right" bgcolor="#DFEAF3">图片文件：</td>
    <td height="25" width="30%" align="left" bgcolor="#FFFFFF" class="tblz5">
    <input id="file" type="file" name="image8" id="image8"  class="input01" onchange="javascript:PreviewImg8(this);"/>
    </td>
    <td height="30" width="15%" align="right" bgcolor="#DFEAF3">弹出窗口图片：</td>
    <td height="30" width="30%" align="left" bgcolor="#FFFFFF" class="tblz5">
      <div id="newPreview8" style="width: 223px;height: 71px;vertical-align: middle;border:0px solid red;vertical-align: middle;">
		<img id="view" src="${ctx }/upload/web/${sysWeb.webPopPic }" width="223" height="71" class="videoimg" />
	  </div>
	</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#DFEAF3">弹出窗口内容：</td>
    <td height="30" align="left" bgcolor="#FFFFFF" class="tblz5">
    <input id="webPopContent" name="sysWeb.webPopContent" value="${sysWeb.webPopContent }" type="text" class="input01" size="40" maxlength="400"/><div id="errUrl"></div></td>
  	<td height="25" align="right" bgcolor="#DFEAF3">弹出窗口状态：</td>
    <td height="25" align="left" bgcolor="#FFFFFF" class="tblz5">
   	<input type="radio" name="sysWeb.webPop" value="0" <s:if test="sysWeb.webPop==0">checked</s:if>/>不弹出
    <input type="radio" name="sysWeb.webPop" value="1" <s:if test="sysWeb.webPop==1">checked</s:if> />弹出
  </tr>

</table>
<table height="50" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="150" align="right"><input type="submit"  value="提交" class="btn"/></td>
    <td width="100" align="right"><input type="reset" value="重置" class="btn"/></td>
    <td width="100" align="right"><input type="button" value="删除" onclick="deleteWeb('${sysWeb.webId }');" class="btn"/></td>
  </tr>
</table>
</from>
</li>
		</ul>
		</div>
	</div>
</div>
</body>
</html>
